< previous page page_244 next page >

Page 244
Table 8.2 Speeds of Different Animation Techniques

METHOD

PROGRAM
FRAMES/SECOND
(2 BALLS)
FRAMES/SECOND
(20 BALLS)
Cls clear
and redraw
Bounce11513
PaintPicture
save and restore
Bounce2122
SetBitmapBits
clear and redraw
Bounce1b3627
BitBlt save
and restore
Bounce2b4712

Summary
Producing animation that works well on all sorts of computers can be tricky. Depending on the size of the images, the speed of the computer, and the other programs running on the system, it may be difficult to present the images quickly enough to provide smooth animation.
Try the different techniques described in this chapter and select the one best suited for your application. Use the simplest technique that gives good enough performance on your system.

 
< previous page page_244 next page >